<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>组件细节第一步</title>
	<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
	<div id="app">
		<table>
			<tbody>
				<!-- is 属性 规范h5，避免出现莫名bug -->
				<tr is="row"></tr>	
				<tr is="row"></tr>
				<tr is="row"></tr>
				<tr is="row"></tr>
			</tbody>
		</table>
	</div>
	<script>
		Vue.component("row",{
			data: function() {
				return {
					content: "this is a row"
				}
			},
			template: "<tr><td>{{content}}</td></tr>"
		})

		new Vue({
			el: "#app",
			data: {}
		})
	</script>
</body>
</html>